package com.mp.approvalreq.entity;

import java.util.Objects;

/**
 * Created by liuqi on 2018/9/6.
 */
public class RequestTime {
	private Integer id;
	private Integer requestId;
	private String daysOffTimes;
	private String leaveTimes;
	private String outDoorTimes;
	private String businessTripTimes;
	private String date;
	
	public RequestTime() {
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRequestId() {
		return requestId;
	}
	
	public void setRequestId(Integer requestId) {
		this.requestId = requestId;
	}
	
	public String getDaysOffTimes() {
		return daysOffTimes;
	}
	
	public void setDaysOffTimes(String daysOffTimes) {
		this.daysOffTimes = daysOffTimes;
	}
	
	public String getLeaveTimes() {
		return leaveTimes;
	}
	
	public void setLeaveTimes(String leaveTimes) {
		this.leaveTimes = leaveTimes;
	}
	
	public String getOutDoorTimes() {
		return outDoorTimes;
	}
	
	public void setOutDoorTimes(String outDoorTimes) {
		this.outDoorTimes = outDoorTimes;
	}
	
	public String getBusinessTripTimes() {
		return businessTripTimes;
	}
	
	public void setBusinessTripTimes(String businessTripTimes) {
		this.businessTripTimes = businessTripTimes;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		RequestTime that = (RequestTime) o;
		return Objects.equals(requestId, that.requestId) &&
				Objects.equals(daysOffTimes, that.daysOffTimes) &&
				Objects.equals(leaveTimes, that.leaveTimes) &&
				Objects.equals(outDoorTimes, that.outDoorTimes) &&
				Objects.equals(businessTripTimes, that.businessTripTimes);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(requestId, daysOffTimes, leaveTimes, outDoorTimes, businessTripTimes);
	}
	
	@Override
	public String toString() {
		return "RequestTime{" +
				"requestId=" + requestId +
				", daysOffTimes='" + daysOffTimes + '\'' +
				", leaveTimes='" + leaveTimes + '\'' +
				", outDoorTimes='" + outDoorTimes + '\'' +
				", businessTripTimes='" + businessTripTimes + '\'' +
				'}';
	}
}
